import NavTitle from "./NavTitle";
import TopLeftInfo from "./TopLeftInfo";
import TopRight from "./TopRight";

export default class TopSection extends React.Component {
    render() {
        const { product, comment, suppId, productId } = this.props;
        return (
            <div>
                <NavTitle product={product} />
                <div className={"detail-top-section"}>
                    <TopLeftInfo
                        productId={productId}
                        product={product}
                        comment={comment}
                    />
                    <TopRight
                        product={product}
                        suppId={product.suppId || $state.params.suppId}
                    />
                </div>
            </div>
        );
    }
}
